<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // import('./1.js').then((res) => {

        //     const text = res.default;
        //     const nextRes = window.btoa(text)
        //     console.log(nextRes);
        // })

        const a = { 1: 'ddd' }
        const b = { a };
        const c = { a };

        delete b.a;

        console.log(c)

        const obj = { a: 1, b: 2, c: 3 }
        const arr = [obj,2,3]
        arr.length = 0;
        console.log(arr);

        class A {
            constructor(a) {
                this.a = a;
            }

        }
        // A.prototype.removeAll = function () {
        //     this.a = null;
        // }

        A.prototype.removeAll = ()=> {
            console.log(this);
            this.a = null;
        }
       const aO = new A(1);
       aO.removeAll();
       console.log(aO);
    </script>
</body>

</html>